package com.cyzy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Data
@TableName("file_info")
public class FileInfo {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String fileName;
    private String contentType;
    private String bucketName;
    private String objectName;
    private String url;
    private Long size;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updatedAt;
    private Integer userId;
    private Integer studentId;
    private Integer isReport; // 0正常， 1被举报；

    private Integer fileStatus; // （0_正常， 1_禁用， 3_合同资源）

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String studentName;

    @TableField(exist = false)
    private String userStatus;
    @TableField(exist = false)
    private String studentStatus;


    @TableField(exist = false)
    private Integer typeId;

    @TableField(exist = false)
    private Integer pageSize;


    @TableField(exist = false)
    private Integer pageNum;



}
